package com.example.dormlist.repo;

import com.example.dormlist.entity.DormitoryBuilding;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface DormitoryBuildingRepository extends JpaRepository<DormitoryBuilding, Long> {

    @Override
    List<DormitoryBuilding> findAll();

    @Override
    Optional<DormitoryBuilding> findById(Long aLong);
}
